<script setup lang='ts'>
const emit = defineEmits();
const sendToDemo = () => {
    emit('footer-to-demo');
}
</script>

<template>
    <div class="footer">
        <img src="https://miaobi-lite.bj.bcebos.com/miaobi/5mao/b%2756yR6IS45piv5LuA5LmI54mM5a2QXzE3Mjc4NjUwMjUuODU2MzMx%27/0.png"
            alt="home-footer" class="footer-img">
        <div class="footer-content">哇，点赞完成，您已获得心愿礼～</div>
        <div class="footer-btn">去领心愿礼</div>
        <img src="@/assets/icon-关闭@3x.png" alt="close" class="footer-close" @click="sendToDemo">
    </div>
</template>

<style scoped>
.footer {
    display: flex;
    align-items: center;
    margin: 0 24px;
    position: fixed;
    bottom: 17px;
    width: 702px;
    height: 88px;
    /* opacity: 0.7; */
    /* background: #000000; */

}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* 半透明背景 */
    border-radius: 63px;
    border-radius: 63px;
    z-index: -1;
    /* 确保伪元素在父元素内容之下 */
}

.footer-btn {
    width: 158px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    margin: 14px 20px 14px 24px;
    background-image: linear-gradient(0deg, #FA1F42 0%, #FFAE8B 100%);
    border-radius: 40px;
    border-radius: 40px;
    font-family: PingFangSC-Semibold;
    font-size: 24px;
    color: #FFFFFF;
    letter-spacing: 0;
    text-align: center;
    line-height: 30px;
}

.footer-img {
    position: absolute;
    top: -10px;
    width: 102px;
    height: 102px;
}

.footer-content {
    margin-left: 106px;
    font-size: 26px;
    color: #FFFFFF;
    line-height: 37px;
}

.footer-close {
    position: absolute;
    top: -50px;
    right: 0px;
    /* transform: (100%, 100%);  */
    width: 36px;
    height: 36px;
}
</style>